/*
 * PKL 51 GUNUNG KIDUL
 * Subseksie DATA ENTRY + CAPI
 */
package pkl51.controller;

import pkl51.view.PanelKuesioner;

/**
 *
 * @author Hindarwan
 */
public class ActionController {
    
    private static PanelKuesioner kuesioner;
    
    private static boolean entry = true;

    public static boolean isEntry() {
        return entry;
    }

    public static void setEntry(boolean entry) {
        ActionController.entry = entry;
    }
    
    public static PanelKuesioner getKuesioner() {
        return kuesioner;
    }

    public static void setKuesioner(PanelKuesioner kuesioner) {
        ActionController.kuesioner = kuesioner;
    }
    
    public static boolean insertKuesioner() {
        return kuesioner.insertDataKuesioner();
    }
    
    public static boolean loadKuesioner(){
        return kuesioner.loadDataKuesioner();
    }
    
    public static boolean saveKuesioner(){
        return kuesioner.updateDataKuesioner();
    }
}
